home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / hips / sources / scale_geom / scaleg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-17  |  649 b   |  20 lines

  1. /* $Header: scaleg.h,v 3.0 88/10/10 13:52:11 ph Locked $ */
  2.  
  3. /* #define DEBUG  */
  4. #define UNDEF PIXEL_UNDEFINED
  5. #define Calloc(a,b) (b *) calloc((unsigned)(a), sizeof(b))
  6.  
  7.  
  8. typedef struct {    /* SOURCE TO DEST COORDINATE MAPPING */
  9.     double sx, sy;    /* x and y scales */
  10.     double tx, ty;    /* x and y translations */
  11.     double ux, uy;    /* x and y offset used by MAP, private fields */
  12. } Mapping;
  13.  
  14. /* see explanation in zoom.c */
  15.  
  16. extern int zoom_debug;
  17. extern int zoom_coerce;    /* simplify filters if possible? */
  18. extern int zoom_xy;    /* filter x before y (1) or vice versa (0)? */
  19. extern int zoom_trimzeros;    /* trim zeros from filter weight table? */
  20.